<template>
  <div class="message-page">
    <el-card class="box-card">
      <router-link to="/message/msg">评论和@</router-link>
      <router-link to="/message/notice">系统通知</router-link>
      <router-link to="/message/setting">消息设置</router-link>
    </el-card>
    <div class="router-box">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {
  name: 'index'
}
</script>

<style scoped>
.message-page{
  display: flex;
  width: 100%;
}

.box-card{
  width: 150px;
  margin-right: 10px;
  height: 100%;
}

.box-card a{
  display: block;
  width: 100%;
  transition: .3s all;
  padding: 20px 0;
}
.box-card a:hover{
  color: #1ab394;
}

.router-box{
  flex: 1;
}

</style>
